package com.consumer.common;

import javax.validation.Constraint;
import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {IdValidator.class})
public @interface IdConstraint {
    String message() default "";

    // 分组
    Class[] groups() default {};

    // 负载
    Class[] payload() default {};
}
